﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using IHISCETeim.BLL;
using IHISCETeim.Library;
using IHISCETeim.Model;

namespace IHISCETeim.Web.MachineSys.SysBasic
{
    public partial class OUserLookUp : PageBase
    {

        protected string target
        {
            get
            {
                return GetRequestValue<string>("target", "");
            }
        }
        protected string rel
        {
            get
            {
                return GetRequestValue<string>("rel", "");
            }
        }

        #region 属性 (查询条件)

        protected override string orderField
        {
            get
            {
                return string.IsNullOrEmpty(base.orderField) ? "UserId" : base.orderField;
            }
        }
        protected override string orderDirection
        {
            get
            {
                return string.IsNullOrEmpty(base.orderDirection) ? "Asc" : base.orderDirection;
            }
        }

        protected string RealName
        {
            get
            {
                return GetRequestValue<string>("RealName");

            }
        }

        protected string RoleId
        {
            get
            {
                return GetRequestValue<string>("RoleId","");
            }
        }

        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {
            DataBind();
        }

        protected void DataBind()
        {
            this.rpMenu.DataSource = OUserController.GetPagination(RealName, RoleId, 1, pageNum, numPerPage, SQLSort, ref TotalCount);
            this.rpMenu.DataBind();
        }

        protected override string DWZRef
        {
            get { return ""; }
        }
    }
}